/**
 * ****************************************************************************
 * Project: RoboBridge
 * ----------------------------------------------------------------------------
 * -------------------------- [c]2012 - KrawallMann ---------------------------
 * ---------------------- http://www.krawallmann.de.tc/ -----------------------
 * ****************************************************************************
 * File: WelcomeFrame.java Package: tc.de.krawallmann.robobridge.visualization
 * Version: 1.0 Author(s): KrawallMann
 * ****************************************************************************
 * Description:
 * ****************************************************************************
 */
package tc.de.krawallmann.robobridge.visualization;

import java.awt.GridLayout;

import javax.swing.JEditorPane;

import tc.de.krawallmann.robobridge.devices.AbstractDevice;


/**
 * The Class WelcomeFrame.<br/>
 * Partially auto-generated Javadoc!
 */
public class WelcomeFrame extends AbstractRoboViewDisplay {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1207905311325603900L;

	/**
	 * Instantiates a new welcome frame.
	 */
	public WelcomeFrame() {
		super("WELCOME!");
		setLayout(new GridLayout(1, 1));
		final JEditorPane ep = new JEditorPane();
		ep.setEditable(false);
		ep.setContentType("text/html");
		ep.setText("<html><head><title>TEST</title></head><body><h1>Welcome!</h1><p>Use the Menu \"View\" to open the device views!</p></body></html>");
		add(ep);
		setVisible(true);
		setSize(400, 400);
	}

	/*
	 * (non-Javadoc)
	 * @see
	 * tc.de.krawallmann.robobridge.devices.SensorListener#onSensorValueChanged
	 * (tc.de.krawallmann.robobridge.devices.AbstractDevice, java.lang.String,
	 * java.lang.Object, java.lang.Object)
	 */
	@Override
	public void onSensorValueChanged(final AbstractDevice sensor, final String propertyName,
			final Object oldValue, final Object newValue) {
	}

}
